home *** CD-ROM | disk | FTP | other *** search
- unit DrBob42_s;
-
- {This file was generated on 29 Dec 2000 10:39:41 GMT by version 03.03.03.C1.06}
- {of the Inprise VisiBroker idl2pas CORBA IDL compiler. }
-
- {Please do not edit the contents of this file. You should instead edit and }
- {recompile the original IDL which was located in the file }
- {C:\DrBob42\Drbob42.idl. }
-
- {Delphi Pascal unit : DrBob42_s }
- {derived from IDL module : DrBob42 }
-
-
-
- interface
-
- uses
- CORBA,
- DrBob42_i,
- DrBob42_c;
-
- type
- TRatesSkeleton = class;
- TAccountSkeleton = class;
- TMyAccountSkeleton = class;
- TADTSkeleton = class;
- TSeqAccountSkeleton = class;
-
- TRatesSkeleton = class(CORBA.TCorbaObject, DrBob42_i.Rates)
- private
- FImplementation : Rates;
- public
- constructor Create(const InstanceName: string; const Impl: Rates);
- destructor Destroy; override;
- function GetImplementation : Rates;
- function interest_rate : Single;
- published
- procedure _interest_rate(const _Input: CORBA.InputStream; _Cookie: Pointer);
- end;
-
- TAccountSkeleton = class(CORBA.TCorbaObject, DrBob42_i.Account)
- private
- FImplementation : Account;
- public
- constructor Create(const InstanceName: string; const Impl: Account);
- destructor Destroy; override;
- function GetImplementation : Account;
- function balance : Single;
- function get_rates ( const myRates : DrBob42_i.Rates): Single;
- published
- procedure _balance(const _Input: CORBA.InputStream; _Cookie: Pointer);
- procedure _get_rates(const _Input: CORBA.InputStream; _Cookie: Pointer);
- end;
-
- TMyAccountSkeleton = class(CORBA.TCorbaObject, DrBob42_i.MyAccount)
- private
- FImplementation : MyAccount;
- public
- constructor Create(const InstanceName: string; const Impl: MyAccount);
- destructor Destroy; override;
- function GetImplementation : MyAccount;
- procedure deposit ( const amount : Single);
- procedure withdraw ( const amount : Single);
- function balance : Single;
- function get_rates ( const myRates : DrBob42_i.Rates): Single;
- published
- procedure _deposit(const _Input: CORBA.InputStream; _Cookie: Pointer);
- procedure _withdraw(const _Input: CORBA.InputStream; _Cookie: Pointer);
- procedure _balance(const _Input: CORBA.InputStream; _Cookie: Pointer);
- procedure _get_rates(const _Input: CORBA.InputStream; _Cookie: Pointer);
- end;
-
- TADTSkeleton = class(CORBA.TCorbaObject, DrBob42_i.ADT)
- private
- FImplementation : ADT;
- public
- constructor Create(const InstanceName: string; const Impl: ADT);
- destructor Destroy; override;
- function GetImplementation : ADT;
- procedure test ( const one : DrBob42_i.Identifier;
- const two : DrBob42_i.EnumType;
- const three : DrBob42_i.StructType;
- const four : DrBob42_i.UnionType;
- const five : DrBob42_i.StructArray;
- const six : DrBob42_i.StructSequence);
- published
- procedure _test(const _Input: CORBA.InputStream; _Cookie: Pointer);
- end;
-
- TSeqAccountSkeleton = class(CORBA.TCorbaObject, DrBob42_i.SeqAccount)
- private
- FImplementation : SeqAccount;
- public
- constructor Create(const InstanceName: string; const Impl: SeqAccount);
- destructor Destroy; override;
- function GetImplementation : SeqAccount;
- function balance ( const mySeq : DrBob42_i.IntSeq): Single;
- published
- procedure _balance(const _Input: CORBA.InputStream; _Cookie: Pointer);
- end;
-
-
- implementation
-
- constructor TRatesSkeleton.Create(const InstanceName : string; const Impl : DrBob42_i.Rates);
- begin
- //inherited;
- inherited CreateSkeleton(InstanceName, 'Rates', 'IDL:DrBob42/Rates:1.0');
- FImplementation := Impl;
- end;
-
- destructor TRatesSkeleton.Destroy;
- begin
- FImplementation := nil;
- inherited;
- end;
-
- function TRatesSkeleton.GetImplementation : DrBob42_i.Rates;
- begin
- result := FImplementation as DrBob42_i.Rates;
- end;
-
- function TRatesSkeleton.interest_rate : Single;
- begin
- Result := FImplementation.interest_rate;
- end;
-
- procedure TRatesSkeleton._interest_rate(const _Input: CORBA.InputStream; _Cookie: Pointer);
- var
- _Output : CORBA.OutputStream;
- _Result : Single;
- begin
- _Result := interest_rate;
- GetReplyBuffer(_Cookie, _Output);
- _Output.WriteFloat(_Result);
- end;
-
- constructor TAccountSkeleton.Create(const InstanceName : string; const Impl : DrBob42_i.Account);
- begin
- //inherited;
- inherited CreateSkeleton(InstanceName, 'Account', 'IDL:DrBob42/Account:1.0');
- FImplementation := Impl;
- end;
-
- destructor TAccountSkeleton.Destroy;
- begin
- FImplementation := nil;
- inherited;
- end;
-
- function TAccountSkeleton.GetImplementation : DrBob42_i.Account;
- begin
- result := FImplementation as DrBob42_i.Account;
- end;
-
- function TAccountSkeleton.balance : Single;
- begin
- Result := FImplementation.balance;
- end;
-
- function TAccountSkeleton.get_rates ( const myRates : DrBob42_i.Rates): Single;
- begin
- Result := FImplementation.get_rates( myRates);
- end;
-
- procedure TAccountSkeleton._balance(const _Input: CORBA.InputStream; _Cookie: Pointer);
- var
- _Output : CORBA.OutputStream;
- _Result : Single;
- begin
- _Result := balance;
- GetReplyBuffer(_Cookie, _Output);
- _Output.WriteFloat(_Result);
- end;
-
- procedure TAccountSkeleton._get_rates(const _Input: CORBA.InputStream; _Cookie: Pointer);
- var
- _Output : CORBA.OutputStream;
- _myRates : DrBob42_i.Rates;
- _Result : Single;
- begin
- _myRates := DrBob42_c.TRatesHelper.Read(_Input);
- _Result := get_rates( _myRates);
- GetReplyBuffer(_Cookie, _Output);
- _Output.WriteFloat(_Result);
- end;
-
- constructor TMyAccountSkeleton.Create(const InstanceName : string; const Impl : DrBob42_i.MyAccount);
- begin
- //inherited;
- inherited CreateSkeleton(InstanceName, 'MyAccount', 'IDL:DrBob42/MyAccount:1.0');
- FImplementation := Impl;
- end;
-
- destructor TMyAccountSkeleton.Destroy;
- begin
- FImplementation := nil;
- inherited;
- end;
-
- function TMyAccountSkeleton.GetImplementation : DrBob42_i.MyAccount;
- begin
- result := FImplementation as DrBob42_i.MyAccount;
- end;
-
- procedure TMyAccountSkeleton.deposit ( const amount : Single);
- begin
- FImplementation.deposit( amount);
- end;
-
- procedure TMyAccountSkeleton.withdraw ( const amount : Single);
- begin
- FImplementation.withdraw( amount);
- end;
-
- function TMyAccountSkeleton.balance : Single;
- begin
- Result := FImplementation.balance;
- end;
-
- function TMyAccountSkeleton.get_rates ( const myRates : DrBob42_i.Rates): Single;
- begin
- Result := FImplementation.get_rates( myRates);
- end;
-
- procedure TMyAccountSkeleton._deposit(const _Input: CORBA.InputStream; _Cookie: Pointer);
- var
- _Output : CORBA.OutputStream;
- _amount : Single;
- begin
- _Input.ReadFloat(_amount);
- deposit( _amount);
- GetReplyBuffer(_Cookie, _Output);
- end;
-
- procedure TMyAccountSkeleton._withdraw(const _Input: CORBA.InputStream; _Cookie: Pointer);
- var
- _Output : CORBA.OutputStream;
- _amount : Single;
- begin
- _Input.ReadFloat(_amount);
- try
- withdraw( _amount);
- except on E: UserException do
- begin
- GetExceptionReplyBuffer(_Cookie, _Output);
- E.WriteExceptionInfo(_Output);
- exit
- end;
- end;
- GetReplyBuffer(_Cookie, _Output);
- end;
-
- procedure TMyAccountSkeleton._balance(const _Input: CORBA.InputStream; _Cookie: Pointer);
- var
- _Output : CORBA.OutputStream;
- _Result : Single;
- begin
- _Result := balance;
- GetReplyBuffer(_Cookie, _Output);
- _Output.WriteFloat(_Result);
- end;
-
- procedure TMyAccountSkeleton._get_rates(const _Input: CORBA.InputStream; _Cookie: Pointer);
- var
- _Output : CORBA.OutputStream;
- _myRates : DrBob42_i.Rates;
- _Result : Single;
- begin
- _myRates := DrBob42_c.TRatesHelper.Read(_Input);
- _Result := get_rates( _myRates);
- GetReplyBuffer(_Cookie, _Output);
- _Output.WriteFloat(_Result);
- end;
-
- constructor TADTSkeleton.Create(const InstanceName : string; const Impl : DrBob42_i.ADT);
- begin
- //inherited;
- inherited CreateSkeleton(InstanceName, 'ADT', 'IDL:DrBob42/ADT:1.0');
- FImplementation := Impl;
- end;
-
- destructor TADTSkeleton.Destroy;
- begin
- FImplementation := nil;
- inherited;
- end;
-
- function TADTSkeleton.GetImplementation : DrBob42_i.ADT;
- begin
- result := FImplementation as DrBob42_i.ADT;
- end;
-
- procedure TADTSkeleton.test ( const one : DrBob42_i.Identifier;
- const two : DrBob42_i.EnumType;
- const three : DrBob42_i.StructType;
- const four : DrBob42_i.UnionType;
- const five : DrBob42_i.StructArray;
- const six : DrBob42_i.StructSequence);
- begin
- FImplementation.test( one,
- two,
- three,
- four,
- five,
- six);
- end;
-
- procedure TADTSkeleton._test(const _Input: CORBA.InputStream; _Cookie: Pointer);
- var
- _Output : CORBA.OutputStream;
- _one : DrBob42_i.Identifier;
- _two : DrBob42_i.EnumType;
- _three : DrBob42_i.StructType;
- _four : DrBob42_i.UnionType;
- _five : DrBob42_i.StructArray;
- _six : DrBob42_i.StructSequence;
- begin
- _one := DrBob42_c.TIdentifierHelper.Read(_Input);
- _two := DrBob42_c.TEnumTypeHelper.Read(_Input);
- _three := DrBob42_c.TStructTypeHelper.Read(_Input);
- _four := DrBob42_c.TUnionTypeHelper.Read(_Input);
- _five := DrBob42_c.TStructArrayHelper.Read(_Input);
- _six := DrBob42_c.TStructSequenceHelper.Read(_Input);
- test( _one,
- _two,
- _three,
- _four,
- _five,
- _six);
- GetReplyBuffer(_Cookie, _Output);
- end;
-
- constructor TSeqAccountSkeleton.Create(const InstanceName : string; const Impl : DrBob42_i.SeqAccount);
- begin
- //inherited;
- inherited CreateSkeleton(InstanceName, 'SeqAccount', 'IDL:DrBob42/SeqAccount:1.0');
- FImplementation := Impl;
- end;
-
- destructor TSeqAccountSkeleton.Destroy;
- begin
- FImplementation := nil;
- inherited;
- end;
-
- function TSeqAccountSkeleton.GetImplementation : DrBob42_i.SeqAccount;
- begin
- result := FImplementation as DrBob42_i.SeqAccount;
- end;
-
- function TSeqAccountSkeleton.balance ( const mySeq : DrBob42_i.IntSeq): Single;
- begin
- Result := FImplementation.balance( mySeq);
- end;
-
- procedure TSeqAccountSkeleton._balance(const _Input: CORBA.InputStream; _Cookie: Pointer);
- var
- _Output : CORBA.OutputStream;
- _mySeq : DrBob42_i.IntSeq;
- _Result : Single;
- begin
- _mySeq := DrBob42_c.TIntSeqHelper.Read(_Input);
- _Result := balance( _mySeq);
- GetReplyBuffer(_Cookie, _Output);
- _Output.WriteFloat(_Result);
- end;
-
-
- initialization
-
-
- end.